package com.cuit.riskassessment.util;


/**
 * 用于生成JsonTree
 * @author Yang_Zhiqin-pc
 *
 */

public class Tree {

	//区域id
	private int id;
	//上级节点id
	private Integer parentId;
	//名称
	private String text;
	private String parentname;
	private int number;
	private Integer type =null;
    private Double td = null;
    private String objname;
    //所属区域名称
    private String upname;
    
	public String getObjname() {
		return objname;
	}
	public void setObjname(String objname) {
		this.objname = objname;
	}
	public String getParentname() {
		return parentname;
	}
	public void setParentname(String parentname) {
		this.parentname = parentname;
	}
	public String getUpname() {
		return upname;
	}
	public void setUpname(String upname) {
		this.upname = upname;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public Double getTd() {
		return td;
	}
	public void setTd(Double td) {
		this.td = td;
	}

	private boolean expanded = true;
	
	public boolean isExpanded() {
		return expanded;
	}
	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public Integer getParentId() {
		return parentId;
	}
	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	//用于区分是区域还是项目
	private boolean leaf = false;
}
